package csc.fresher.entity;

import java.sql.Date;
import java.sql.Timestamp;


public abstract class AccountHasInterestRate {
	private long id;
	private long accountNumber;
	private int interestRateID;
	private Timestamp fromDate;
	private Timestamp toDate;
	private double balance;
	private InterestRate interestRate;
	private AccountHasInterestRateState state;
	
	public InterestRate getInterestRate() {
		return interestRate;
	}

	public void setInterestRate(InterestRate interestRate) {
		this.interestRate = interestRate;
	}

	public AccountHasInterestRate() {
		super();
	}

	public AccountHasInterestRate(long accountNumber,
			int interestRateID, Timestamp fromDate, Timestamp toDate,
			double balance, AccountHasInterestRateState state) {
		super();
		this.accountNumber = accountNumber;
		this.interestRateID = interestRateID;
		this.fromDate = fromDate;
		this.toDate = toDate;
		this.balance = balance;
		this.state = state;
	}
	
	public AccountHasInterestRate(long id, long accountNumber,
			int interestRateID, Timestamp fromDate, Timestamp toDate,
			double balance) {
		super();
		this.id = id;
		this.accountNumber = accountNumber;
		this.interestRateID = interestRateID;
		this.fromDate = fromDate;
		this.toDate = toDate;
		this.balance = balance;
	}

	public long getAccountNumber() {
		return accountNumber;
	}

	public void setAccountNumber(long accountNumber) {
		this.accountNumber = accountNumber;
	}

	public int getInterestRateID() {
		return interestRateID;
	}

	public void setInterestRateID(int interestRateID) {
		this.interestRateID = interestRateID;
	}

	public Timestamp getFromDate() {
		return fromDate;
	}

	public void setFromDate(Timestamp fromDate) {
		this.fromDate = fromDate;
	}

	public Timestamp getToDate() {
		return toDate;
	}

	public void setToDate(Timestamp toDate) {
		this.toDate = toDate;
	}

	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	public AccountHasInterestRateState getState() {
		return state;
	}

	public void setState(AccountHasInterestRateState state) {
		this.state = state;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

}
